]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
inputMethod: Add a null-check for text in vfunc_set_surrounding.
authorAndrea Azzarone <andrea.azzarone@canonical.com>
Mon, 17 Sep 2018 16:00:04 +0000 (18:00 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 17 Sep 2018 16:06:19 +0000 (16:06 +0000)
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/579

js/misc/inputMethod.js

index 320a6cc336fc9b3a3df429c4c55e96da8851b3c1..ec84f7277825979cde99542ff480ee10f4d38ead 100644 (file)
@@ -176,7 +176,7 @@ var InputMethod = new Lang.Class({
     },
 
     vfunc_set_surrounding(text, cursor, anchor) {
-        if (this._context)
+        if (this._context && text)
             this._context.set_surrounding_text(text, cursor, anchor);
     },